Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The idea of this PR is to have the end-to-end skeleton for everything related to the Database. We will need to tweak a bunch of things as we go, but this can serve as a good starting point.
pg
that will work for our local docker + vercel.services/database/config
. Current schema is just a test.services/database/repositories/submissions.ts
)drizzle.config.ts
is fordrizzle-kit
(push, migrate, etc). See readme for more info. Since it's not boostraped by NextJS, we need to manually add the .env.vars.env.local
(except in the cases where we are loading .env.development directly).seed.ts
file. See README for more info.yarn drizzle-kit studio
for a nice UII think next steps could be to start creating some of the workflows (hackathon registration, submit project, admin view/vote, etc) that use the database, so we can iterate on the schema as we go.